<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateServicesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('services', function(Blueprint $table)
		{
			$table->increments('id');
            $table->integer('customer_id');
            $table->integer('mount_id');
            $table->integer('type');
            $table->integer('state');
            $table->integer('worker_id')->nullable();
            $table->integer('comment_id')->nullable();
            $table->integer('action_time')->nullable();
            $table->integer('work_time')->nullable();
            $table->text('filters')->nullable();
            $table->text('remark')->nullable();
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('services');
	}

}
